package com.itheima.controller;



import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.HelloService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("/hello")
public class HelloController {

    @Reference
    private HelloService service;

    @RequestMapping("/sayHello.do")
    @ResponseBody
    public String sayhello(String name) {

       return service.sayHello(name);

    }
}
